/*
 * Symphony - A modern community (forum/SNS/blog) platform written in Java.
 * Copyright (C) 2012-2017,  b3log.org & hacpai.com
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * Hacpai style.
 *
 * @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
 * @version 1.0.0.1, Sep 2, 2015
 */

/* start reset */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "Helvetica Neue", "Luxi Sans", "DejaVu Sans", Tahoma, "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
    font-size: 13px;
    background-color: #FFF;
    color: #333;
}

::-moz-selection {
    text-shadow: none;
    background: rgba(65,131,196,0.4);
}

::selection { 
    text-shadow: none;
    background: rgba(65,131,196,0.4)
}

::-webkit-scrollbar {
    background: none;
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-corner {
    display: none;
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    border: solid 0 rgba(0, 0, 0, 0);
    border-right-width: 4px;
    border-left-width: 4px;
    border-radius: 9px;
    box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.2), inset 0 0 0 4px rgba(128, 128, 128, 0.2);
}

::-webkit-scrollbar-thumb:horizontal {
    border-bottom-width: 4px;
    border-top-width: 4px;
}

::-webkit-input-placeholder { /* WebKit, Blink, Edge */
    color:    #43a099;
}

::-moz-placeholder { /* Mozilla Firefox 19+ */
    color:    #43a099;
    opacity:  1;
}

a {
    outline: 0;
    text-decoration: none;
    color: #4183C4;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    vertical-align: middle;
    border: 0;
    -ms-interpolation-mode: bicubic;
}

button,
input,
select,
textarea {
    margin: 0;
    font-size: 100%;
    vertical-align: middle;
    font-family: "Helvetica Neue", "Luxi Sans", "DejaVu Sans", Tahoma, "Hiragino Sans GB", STHeiti;
    outline: none;
}

button,
input {
    line-height: normal;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
    padding: 0;
    border: 0;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    cursor: pointer;
    -webkit-appearance: button;
}

input[type="search"] {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    -webkit-appearance: textfield;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

textarea {
    overflow: auto;
    vertical-align: top;
}
/* end reset */

/* start function */
.fn-flex {
    display: flex;
    display: -webkit-box;
}

.fn-flex-1 {
    flex: 1;
    -webkit-box-flex: 1; 
}

.fn-clear:before,
.fn-clear:after {
    display: table;
    content: "";
}

.fn-clear:after {
    clear: both;
}

.fn-left {
    float: left;
}

.fn-right {
    float: right;
}

.fn-none {
    display: none;
}

.fn-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: normal;
}

.ft-center {
    text-align: center;
}

.fn-inline {
    display: inline-block;
}

.fn-list,
.fn-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}
/* end function */

/* start icon */
@font-face {
    font-family: 'icomoon';
    src:url('fonts/icomoon.eot');
    src:url('fonts/icomoon.eot?#iefix') format('embedded-opentype'),
        url('fonts/icomoon.ttf') format('truetype'),
        url('fonts/icomoon.woff') format('woff'),
        url('fonts/icomoon.svg#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
}

[class^="icon-"], [class*=" icon-"] {
    font-family: 'icomoon';
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-pre:before {
    content: "\e603";
}
.icon-search:before {
    content: "\e600";
}
.icon-info:before {
    content: "\e601";
}
.icon-next:before {
    content: "\e604";
}
.icon-view:before {
    content: "\e605";
}
.icon-cmts:before {
    content: "\e606";
}
.icon-heart:before {
    content: "\e607";
}

.ico-down {
    width: 0;
    height: 0;
    border-width: 8px 6px;
    border-style: solid;
    border-color: #888888 transparent transparent transparent;
    float: right;
    cursor: pointer;
    margin-top: 15px;
    margin-right: 10px;
}
/* end icon */

/* start common */
.btn {
    color: #FFF;
    background-color: #43a099;
    border-radius: 5px;
    border: 0;
    font-size: 16px;
    padding: 5px 30px;
    text-align: center;
}

.btn.orange {
    background-color: #febe5b;
}
/* end common */

/* start framework */
.wrapper {
    width: 80%;
    margin: 0 auto;
    min-width: 720px;
}

.footer {
    background-color: #f8f8f8;
    color: #aaa;
    font-size: 14px;
    padding: 20px 0;
    line-height: 24px;
    margin-top: 35px;
}

.footer img {
    margin-right: 30px;
}
/* end framework */

/* start header */
.nav {
    height: 80px;
    background: -webkit-linear-gradient(#ffffff,#f9f9f9);
    border-bottom: 1px solid #f2f2f2;
    position: relative;
    padding: 0 10px;
    margin-bottom: 35px;
}

.nav a:hover {
    text-decoration: none;
}

.nav .logo-wrap {
    font-family: 'FZYaoti';
    font-size: 18px;
    line-height: 80px;
    display: inline-block;
}

.nav > ul {
    position: absolute;
    top: 0;
    left: 10%;
    line-height: 80px;
}

.nav > ul li {
    float: left;
}

.nav h1 {
    margin: 0;
    font-size: 18px;
}

.nav > ul li a {
    color: #666;
    margin-right: 50px;
    font-weight: normal;
}

.nav > ul li.current a {
    color: #fdb10f;
    font-weight: bold;
}

.nav .info {
    width: 560px;
    margin-top: 20px;
    position: relative;
}

.nav .info form {
    border: 1px solid #ddd;
    border-radius: 3px;
    height: 34px;
    width: 404px;
    float: left;
}

.nav .info input {
    height: 31px;
    width: 356px;
    border-width: 0;
    padding: 0 10px;
    background-color: transparent;
}

.nav .info .icon-search{
    float: right;
    color: #bbb;
    font-size: 22px;
    margin: 5px 5px 0 0;
}

.nav .info a.icon-info {
    font-size: 22px;
    line-height: 33px;
    margin: 0 15px 0 30px;
}

.nav .count {
    background-color: #fd5c5c;
    color: #fff;
    font-family: Arial;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    top: 1px;
    left: 454px;
    padding: 0 5px;
    border-radius: 15px;
}

.nav .info img {
    height: 35px;
    width: 35px;
    vertical-align: bottom;
    border-radius: 20px;
}

.nav .info ul {
    background-color: #FFF;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0 15px;
    line-height: 40px;
    position: absolute;
    right: 0;
    z-index: 2;
    top: 48px;  
}

.nav .info li {
    border-bottom: 1px solid #eee;
}

.nav .info a {
    color: #888;
    font-size: 14px;
    padding: 0 5px;
}

.nav .btn {
    width: 100%;
    margin: 10px 0;
}

.nav .list-up {
    width: 0;
    height: 0;
    border-width: 8px 6px;
    border-style: solid;
    border-color: transparent transparent #FFF transparent;
    position: absolute;
    top: 33px;
    z-index: 4;
    right: 44px;
}

.nav .list-up-wrap {
    width: 0;
    height: 0;
    border-width: 9px 7px;
    border-style: solid;
    border-color: transparent transparent #ddd transparent;
    position: absolute;
    top: 31px;
    z-index: 3;
    right: 43px;
}
/* end header */

/* start index */
.ads .ad {
    position: relative;
    background-color: #000;
    height: 245px;
    width: 240px;
    overflow: hidden;
}

.ads .ad:after {
    content: ' ';
    background-image: linear-gradient(0deg, rgba(110, 110, 110, 0.3), transparent);
    height: 50%;
    width: 100%;
    position: absolute;
    bottom: 0;
    background-image: -o-linear-gradient(top, rgba(110, 110, 110, 0.3), transparent);
}

.ads a.ad .title {
    color: #FFF;
    font-size: 30px;
    margin: 40px 30px;
    box-sizing: border-box;
    word-wrap: break-word;
    height: 165px;
    overflow: hidden;
}

.ads .ad a.title {
    color: #FFF;
    position: absolute;
    bottom: 10px;
    text-align: center;
    width: 100%;
    font-size: 18px;
    padding: 0 10px;
    box-sizing: border-box;
    z-index: 10;
}

.ads a.ad:hover {
    text-decoration: none;
}

.ads .ad .heading {
    position: absolute;
    background-color: #487da2;
    color: #FFF;
    font-size: 14px;
    padding: 7px 16px;
    top: 0;
    left: 0;
}

.ads .ad1 .heading {
    background-color: #ac6767;
}

.ads .ad2 .heading {
    background-color: #a160a9;
}

.ads .ad3 .heading {
    background-color: #ac9567;
}

.ads .ad1 {
    margin-right: 10px;
    height: 460px;
    width: auto;
}

.ads .ad2 {
    margin-left: 10px;
}

.ads .ad3 {
    height: 205px;
    width: 490px;
    margin-top: 10px;
}

.hot-tags {
    font-size: 18px;
    color: #777;
    line-height: 32px;
    margin: 28px 0;
    height: 34px;
    overflow: hidden;
}

.hot-tags a {
    color: #777;
    font-size: 14px;
    padding: 4px 10px;
    margin: 0 10px;
}

.hot-tags a:hover {
    background-color: #febe5b;
    color: #FFF;
    text-decoration: none;
    border-radius: 25px;
}

.side {
    width: 340px;
}

.side .btn {
    height: 47px;
    border-radius: 35px;
    font-size: 18px;
    font-weight: bold;
}

.side .panel {
    margin-top: 22px;
    background-color: #f8f8f8;
    padding: 22px;
}

.side .panel-title {
    font-size: 18px;
    font-weight: bold;
    color: #43a099;
    line-height: 24px;
}
.side .panel-title span {
    font-size: 14px;
    font-weight: normal;
}

.side .panel li {
    margin-top: 20px;
    height: 74px;
    overflow: hidden;
}

.side .panel img {
    width: 100px;
    height: 74px;
}

.side .panel .title {
    margin: 3px 0 7px 20px;
    font-size: 14px;
    font-weight: bold;
    color: #666;
}
.side .panel .abstract {
    margin-left: 20px;
    font-size: 12px;
    color: #888;
    line-height: 20px;
}

.side .avatar-wrap {
    float: left;
    position: relative;
    margin: 20px 9px 0px 0;
}
.side img.avatar {
    height: 65px;
    width: 65px;
    border-radius: 35px;
}

.side .avatar-wrap:hover .hover {
    position: absolute;
    height: 65px;
    width: 65px;
    background-color: rgba(254, 190, 91, 0.8);
    top: 0;
    border-radius: 35px;
    cursor: pointer;
    text-align: center;
    line-height: 59px;
    font-weight: bold;
    font-size: 50px;
    color: #FFF;
    transition: background 200ms ease;
}

.side .avatar-wrap:hover .hover:before {
    content: '+';
}

.content {
    margin-right: 20px;
    border-top: 3px solid #43a099;
}

.content li {
    width: 30.8%;
    border: 1px solid #f8f8f8;
    margin: 20px 8px 0;
    box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    overflow: hidden;
    float: left;
    min-width: 180px;
    max-width: 300px;
    transition:border 500ms ease-out;
}

.content li:hover {
    border-color:#febe5b;
}

.content .header {
    padding: 10px;
    height: 19.3vw;
    overflow: hidden;
    min-height: 250px;
    max-height: 310px;
}

.content li:hover .header .img {
    height: 50%;
}

.content .header .img {
    background-size: cover;
    background-position: center center;
    height: 91%;
    transition: height 500ms  ease;
}

.content .header .title {
    font-size: 14px;
    margin: 10px 0;
}

.content .header .abstract {
    font-size: 12px;
    color: #888;
    line-height: 18px;
}

.content .info {
    background-color: #F8f8f8;
    padding: 12px 15px;
}

.content .count span {
    font-size: 12px;
    color:  #b6b6b6;
}

.content .avatar {
    height: 36px;
    width: 36px;
    border-radius: 18px;
    border: 1px solid #efefef;
    margin-right: 15px;
}

.content .date {
    color: #aaa;
    font-size: 12px;
    margin-top: 2px;
}

.content .cmt-name {
    color: #fdb10f;
    font-size: 14px;
}

.content .cmt-content {
    color: #777;
    font-size: 14px;
}
/* end index */

/* start responsive */
@media (min-width: 1850px) {
    .nav .logo-wrap > span {
        display: block;
    }
}
/* end responsive */